Most of the hook functions need context to see what the current user's
permissions are, to generate messages, or the LinkRenderer service to
generate the tool links.
Change-Id: I19fa27c8115ee39dded6cb98f29c35b66b934f8a
$id: User identifier
$title: User page title
&$tools: Array of tool links
+$specialPage: SpecialPage instance for context and services. Can be either
+ SpecialContributions or DeletedContributionsPage. Extensions should type
+ hint against a generic SpecialPage though.
'ConvertContent': Called by AbstractContent::convert when a conversion to
another content model is requested.
);
}
- Hooks::run( 'ContributionsToolLinks', [ $id, $userpage, &$tools ] );
+ Hooks::run( 'ContributionsToolLinks', [ $id, $userpage, &$tools, $this ] );
return $tools;
}
);
}
- Hooks::run( 'ContributionsToolLinks', [ $id, $nt, &$tools ] );
+ Hooks::run( 'ContributionsToolLinks', [ $id, $nt, &$tools, $this ] );
$links = $this->getLanguage()->pipeList( $tools );